//
//  I_Admin.h
//  YunDongAdmin
//
//  Created by lqq on 2018/9/7.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "I_Base.h"
#import "M_Admin.h"
#import "M_Coach.h"
@interface I_Admin : I_Base


/**
 管理员创建账户
 */
+ (NetworkTask *)creatAdminWithAdmin:(M_Admin *)admin success:(void(^)(void))successBlock failure:(ErrorBlock)failureBlock;


/**
 管理员删除账户
 */
+ (NetworkTask *)deleteAdminWithAdminId:(NSString *)adminId success:(void(^)(void))successBlock failure:(ErrorBlock)failureBlock;


/**
 重置密码
 */
+ (NetworkTask *)resetPasswordWithAdminId:(NSString *)adminId
                                adminType:(AdminType)adminType
                                  success:(void(^)(void))successBlock
                                  failure:(ErrorBlock)failureBlock;

/**
 查询管理员详情
 */
+ (NetworkTask *)requestAdminDetailWithAdminId:(NSString *)adminId success:(void(^)(M_Admin *admin))successBlock failure:(ErrorBlock)failureBlock;



/**
 管理端修改账户信息
 */
+ (NetworkTask *)updateAdminWithAdmin:(M_Admin *)admin success:(void(^)(void))successBlock failure:(ErrorBlock)failureBlock;


/**
 查询门店的店长和教练列表
 */
+ (NetworkTask *)requestGymAdminListAndGymCoachListOnSuccess:(void(^)(NSMutableArray *adminList,NSMutableArray *coachList))successBlock failure:(ErrorBlock)failureBlock;
@end
